#!/usr/bin/env python
# -*- coding:utf-8 -*-

"""
@author zyx
@since 2022/2/12 08:39
@file: selenum_demo.py
"""

from selenium import webdriver


# 创建浏览器操作对象
path = r'D:\Coding\chromedriver\chromedriver.exe'
browser = webdriver.Chrome(path)

# page_source获取网页源码
url = 'https://www.jd.com/'
browser.get(url)

# page_source获取网页内容
content = browser.page_source
print(content)
